// 引用网络请求中间件
import request from './../utils/request';

//获取礼包列表
export function getCouponPackList() {
  return request({
    method: "get",
    url: "/api/couponpack/GetList",
  });
}

//根据id获取礼包详情
export function getCouponpackById(params) {
  return request({
    method: "get",
    url: "/api/couponpack/Get?id=" + params.id,
  });
}

//提交优惠券礼包订单
export function CreatePackOrder(data) {
  return request({
    method: "post",
    url: "/api/PCApplet/CreatePackOrder",
    data
  });
}

//根据礼包订单号获取微信支付参数
export function getCouponPayParam(params) {
  return request({
    method: "get",
    url: "/api/PCApplet/GetPayPerm_CouponPackOrder?orderNo=" + params.orderNo,
  });
}